import {
    Post, Controller, Body
} from '@nestjs/common';
import { LoginService } from './services/login.service';



@Controller()
export class LoginController {
    constructor(
        public loginService: LoginService,
    ) {
    }
    @Post('login')
    async uploadFile(@Body() params) {
        const data = await this.loginService.login(params);
        return data;
    }
}